<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<link href="${basePath}/static/css/Pigeonhole/Pigeonhole_list.css"
	rel="stylesheet" type="text/css">
<link rel="stylesheet"
	href="${basePath}/static/css/medicalRecord_Search/medicalSearch.css" />
<script type="text/javascript"
	src="${basePath}/static/publics/assets/jqPaginator/jqPaginator.js"></script>
<div class="list_NR">
	<div class="loc">
		<h3>统计报告</h3>
		<ul class="loc_loc">统计报告 > 参数设置
		</ul>
	</div>

	<div class="list_con_table">
		<form action="${basePath}//queryMedrecordHomePage"
			method="get" id="infoListForm">
			<div class="search_table">
				<ul class="clearfix" style="margin-bottom: 0;">
					<input type="hidden" value="${sessionScope.statisticalReportParam.id}" name="id"/>
					<li class="Label_1" style="width: 10%">时间参数1：&nbsp;</li>
					<li class="Label_2" style="width: 50%"><input
						class="input_box" style="width: 45%" name="statics1StartTime"
						value="<fmt:formatDate value="${sessionScope.statisticalReportParam.statics1StartTime}" type="both" pattern="yyyy-MM-dd" />"  onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" type="text">
						- <input class="input_box" style="width: 45%"
						name="statics1EndTime" value="<fmt:formatDate value="${sessionScope.statisticalReportParam.statics1EndTime}" type="both" pattern="yyyy-MM-dd" />"
						onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" type="text">
					</li>
					<li class="Label_1" style="width: 12%">时间参数1别名：&nbsp;</li>
					<li class="Label_2" style="width: 28%"><input
						style="width: 90%;" class="input_box"  
						value="${sessionScope.statisticalReportParam.statics1Name}" name="statics1Name"
						type="text"></li>

					<li class="Label_1" style="width: 10%">时间参数2：&nbsp;</li>
					<li class="Label_2" style="width: 50%"><input
						class="input_box" style="width: 45%" name="statics2StartTime"
						value="<fmt:formatDate value="${sessionScope.statisticalReportParam.statics2StartTime}" type="both" pattern="yyyy-MM-dd" />" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" type="text">
						- <input class="input_box" style="width: 45%"
						name="statics2EndTime" value="<fmt:formatDate value="${sessionScope.statisticalReportParam.statics2EndTime}" type="both" pattern="yyyy-MM-dd" />"
						onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" type="text">
					</li>
					<li class="Label_1" style="width: 12%">时间参数2别名：&nbsp;</li>
					<li class="Label_2" style="width: 28%"><input
						style="width: 90%;" class="input_box" value="${sessionScope.statisticalReportParam.statics2Name}" name="statics2Name"
						type="text"></li>

					<li class="Label_1" style="width: 10%">时间参数3：&nbsp;</li>
					<li class="Label_2" style="width: 50%"><input
						class="input_box" style="width: 45%" name="statics3StartTime"
						value="<fmt:formatDate value="${sessionScope.statisticalReportParam.statics3StartTime}" type="both" pattern="yyyy-MM-dd" />" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" type="text">
						- <input class="input_box" style="width: 45%"
						name="statics3EndTime" value="<fmt:formatDate value="${sessionScope.statisticalReportParam.statics3EndTime}" type="both" pattern="yyyy-MM-dd" />"
						onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" type="text">
					</li>
					<li class="Label_1" style="width: 12%">时间参数3别名：&nbsp;</li>
					<li class="Label_2" style="width: 28%"><input
						style="width: 90%;" class="input_box" name="statics3Name" value="${sessionScope.statisticalReportParam.statics3Name}"
						type="text" /></li>


					<li class="Label_5">
						<div class="right">
							<input class="btn" type="button" value="确认"
								onclick="addParamters()">
						</div>
					</li>
				</ul>
			</div>
		</form>


	</div>




</div>
<script type="text/javascript"
	src="${basePath}/static/publics/assets/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
	function addParamters() {
	
		 var params = $("#infoListForm").serializeArray();
		 $.ajax({
			 type:"post",
			 data:params,
			 url:"${basePath}/report/saveParamterSetting",
			 success:function(data){
				 if(data.success){
					 layer.alert("参数设置成功!");
				 }else{
					 layer.alert("参数设置失败!");
				 }
			 }
		 })

		

	}
</script>